import { createRouter, createWebHistory } from 'vue-router';
import Home from '../views/Home.vue';
import AP from '../views/AP.vue'; // 引入 AP 组件
import BP from '../views/BP.vue'; // 引入 BP 组件

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
  },
  {
    path: '/aP',
    name: 'AP',
    component: AP, // 添加 AP 路由
  },
  {
    path: '/bP',
    name: 'BP',
    component: BP, // 添加 BP 路由
  },
];

const router = createRouter({
  history: createWebHistory('/'),
  routes,
});

export default router; 